<?php
namespace app\admin\api;

use \think\Cache;
use think\Controller;
use think\Loader;
use \think\Cookie;
use \think\Session;
use app\admin\common\Http\ConferenceHttpClient;


//注册接口类
class register extends ConferenceHttpClient
{

    /**
     * 注册
     * @return [type] [description]
     */
    public function index($data)
    {
        if($data) {
            //获取数据
            $url = '/client/register';

            //请求接口信息
            $result = $this->post($url,$data);

            if ($result->code == 0){
                return 0;

            }else{
                return $result->message;
            }
        }
    }
}